
export default class RootAutomatorWrapper {
    private static ra: RootAutomator = new RootAutomator();

    public static click(x: number | Point | number[], y?: number): void {
        if (typeof x == 'number') {
            this.ra.press(x, y, 150);
        } else if (x instanceof Array) {
            this.ra.press(x[0], x[1], 150);
        } else {
            this.ra.press(x.x, x.y, 150);
        }
    }
}